package org.example.service.Impl;


import org.example.bean.Ship;
import org.example.mapper.ShipDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShipServise {
    @Autowired
    ShipDao shipDao;
    public List<Ship> getAll(){
        return shipDao.list();
    };
    public void del(int id){
        shipDao.del(id);
    };
    public void add(Ship ship){shipDao.add(ship);}
    public void update(Ship ship){shipDao.update(ship);}
}
